import { ApiProperty } from '@nestjs/swagger';
import { Column, Entity } from 'typeorm';
import { BaseEntity } from '../../../base.entity';

@Entity({ name: 'base_material_machine_parameter_unit' })
export default class BaseMaterialMachineParameterUnit extends BaseEntity {
  @Column({ type: 'varchar', length: 50, name: 'machine_code', comment: '设备编码' })
  @ApiProperty()
  machineCode: string;

  @Column({ type: 'varchar', length: 50, name: 'material_code', comment: '产品编码' })
  @ApiProperty()
  materialCode: string;

  @Column({ type: 'varchar', length: 50, nullable: true, comment: '版本' })
  @ApiProperty()
  version: string;

  @Column({ type: 'float', name: 'print_unit', comment: '印刷单元' })
  @ApiProperty()
  printUnit: number;

  @Column({ type: 'varchar', length: 50, name: 'plate_id', nullable: true, comment: '印版id' })
  @ApiProperty()
  plateId: string;

  @Column({ type: 'varchar', length: 50, name: 'color', nullable: true, comment: '水墨' })
  @ApiProperty()
  color: string;

  @Column({ type: 'varchar', length: 50, name: 'color_id', nullable: true, comment: '水墨id' })
  @ApiProperty()
  colorId: string;
}
